'use strict';
import React, {Component} from 'react';

import {
    View,
    Image,
    ImageBackground,
    Dimensions,
    TouchableWithoutFeedback,
    StyleSheet,
    Text,
    TouchableOpacity,
    TextInput,
    ScrollView,
    TouchableHighlight,
    TouchableNativeFeedback,
    Switch,
} from 'react-native';
import {StackNavigator, TabNavigator} from 'react-navigation';
import ToastUtil from '../../../../core/utils/toast-util.js';
import {Loading, EasyLoading} from 'react-native-easy-loading';
import DatePicker from 'react-native-datepicker'
import CameraButton from '../../../../core/component/comp.button-camera';
import Color from '../../../../core/constant/color';
import Http from '../../../../core/utils/http';

import MainScene from './page.main';
import MainChartOnlineScene from './page.main-chart-online';
import MainCommonScrollTabViewScene from './page.main-common-scroll-tab-view';
import MainYaoYueGuangChangScene from '../mine/page.main-yao-yue-guang-chang';
import MainSearchScene from '../search/page.main-search';
import MainSearchResultScene from '../search/page.main-search-result';
import SkillDetailScene from '../common/page.skill.detail';
import OrderScene from '../mine/page.order';
import PersonInfoScreen from '../mine/page.person.info';


const MainNav = StackNavigator({
    MainScene: {screen: MainScene, MainScene, key: 'MainScene'},
    MainChartOnlineScene: {screen: MainChartOnlineScene},
    MainYaoYueGuangChangScene: {screen: MainYaoYueGuangChangScene},
    MainCommonScrollTabViewScene: {screen: MainCommonScrollTabViewScene},
    MainSearchScene: {screen: MainSearchScene},
    MainSearchResultScene: {screen: MainSearchResultScene},
    SkillDetailScene: {screen: SkillDetailScene},
    PersonInfoScreen:{screen:PersonInfoScreen},
    OrderScene: {screen: OrderScene},
}, {
    initialRouteParams: {},
    initialRouteName: 'MainScene',
    headerMode: 'screen' // <-- should allow you to change the styles of the header
})

export default MainNav;